package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;

/**
 * 流程模型与菜单关联对象 erp_act_menu
 * @author cxl
 * @date 2024-05-25
 */
@Data
@Accessors(chain = true)
@TableName("erp_act_menu")
@ApiModel(value="流程模型与菜单关联", description="流程模型与菜单关联")
public class ActMenuEntity {

        /** 主键id */
        @TableId(type = IdType.INPUT)
        private String id;

        /** 菜单id */
        @ApiModelProperty("菜单id")
        @TableField("menu_id")
        @Excel(name = "菜单id")
        private String menuId;

        /** 流程模型id */
        @ApiModelProperty("流程模型id")
        @TableField("model_id")
        @Excel(name = "流程模型id")
        private String modelId;

        /** 创建人 */
        @ApiModelProperty("创建人")
        @TableField("user_id")
        @Excel(name = "创建人")
        private String userId;

        @ApiModelProperty ("创建时间")
        @TableField (value = "create_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty("更新时间")
        @TableField("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date changeTime;


        @ApiModelProperty("逻辑删除")
        @TableLogic
        @TableField("is_used")
        @Excel(name = "逻辑删除")
        private Integer isUsed;


}
